package com.amaake.client;

import com.jfinal.plugin.IPlugin;

import java.util.HashMap;
import java.util.Map;

/**
 * \* Created with IntelliJ IDEA.
 * \* User: Amaake
 * \* Date: 2016/11/18 0018
 * \* Time: 20:21
 * \* Description: 春眠不觉晓，起来敲代码。
 * \
 */
public class AmaakeClientRpcPlugin implements IPlugin {

    private Map<String, Proxy> proxyMap = new HashMap<String, Proxy>();

    public void addProxyMap(String bm,Proxy proxy){
        proxyMap.put(bm,proxy);
    }


    public boolean start() {
        AmaakeClientRpc amaakeClientRpc = new AmaakeClientRpc();
        amaakeClientRpc.setProxyMap(proxyMap);
        return true;
    }

    public boolean stop() {
        return true;
    }
}